//
//  CategoryCell.m
//  HRJiWei
//
//  Created by zsj1992 on 16/12/12.
//  Copyright © 2016年 bjhj. All rights reserved.
//

#import "CategoryCell.h"

@implementation CategoryCell

+(instancetype)cellWithTableView:(UITableView *)tableView{
    CategoryCell * cell = [tableView dequeueReusableCellWithIdentifier:@"categoryCell"];
    if (cell==nil) {
        cell = [[NSBundle mainBundle] loadNibNamed:@"CategoryCell" owner:self options:nil][0];
    }
    return cell;
}


-(void)setCategory:(HJCategory *)category{
    _category = category;
    self.textLabel.text = category.name;
}


- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
